package com.banyuan;

public class AnimalTest {
    public static void main(String[] args) {
        Animal animal1 = new Animal();
        Animal animal2 = new Animal();
        animal1.setRace("小猫");
        System.out.println(animal1.getRace());
        animal1.setSex("母");
        System.out.println(animal1.getSex());
        animal1.sleep();
        animal2.setAge(12);
        System.out.println(animal2.getAge());
    }
}
